<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta
            name="viewport"
            content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
        />
        <meta http-equiv="X-UA-Compatible" content="ie=edge" />
        <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
        <title>Document</title>
    </head>
    <body>
        <div id="app">
            <button @click="fn1($event)">弹出1</button>
            <button @click="fn2($event)">弹出2</button>
            <button @click="fn3($event)">弹出3</button>
        </div>
        <script>
            const vm = new Vue({
                el: "#app",
                data() {
                    return {};
                },
                methods: {
                    fn1(event) {
                        console.log(event, "fn1");
                    },
                    fn2(event) {
                        console.log(event, "fn2");
                    },
                    fn3(event) {
                        console.log(event, "fn3");
                    },
                },
            });
        </script>
    </body>
</html>
